package com.wkky.mechanismscreenings.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wkky.mechanismscreenings.dtovo.StaffPageQueryDTO;
import com.wkky.mechanismscreenings.entity.Staff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 10311
* @description 针对表【staff(五矿矿业从业人员名单 )】的数据库操作Mapper
* @createDate 2023-09-20 16:38:59
* @Entity com.wkky.mechanismscreenings.entity.Staff
*/
public interface StaffMapper extends BaseMapper<Staff> {
    List<Staff> selectRandStaffs(int limit);

    List<Map<String, Double>> getOrganizationRatio();

    Page<Staff> pageQuery(@Param("page") Page<Staff> page,@Param("staffPageQueryDTO") StaffPageQueryDTO staffPageQueryDTO);//

    List<Staff> queryStaffByCondition(@Param("staffPageQueryDTO") StaffPageQueryDTO staffPageQueryDTO);

    /* Page<Staff> selectRandStaffs(int limit);*/
}




